package com.zzq.common.result;

import lombok.Data;

@Data
public class ResultBasePage {
    Integer pageNum;
    Integer pageSize;
    Object list;
    Long total;
    Object data;

    public ResultBasePage() {
    }

    /**
     * @param list     list数据
     * @param pageNum  当前页
     * @param pageSize 当前页大小
     * @param total    总记录数
     * @param data     其他数据
     */
    public ResultBasePage(Object list, Integer pageNum, Integer pageSize, Long total, Object data) {
        this.list = list;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.data = data;
    }

    /**
     * @param list     list数据
     * @param pageNum  当前页
     * @param pageSize 当前页大小
     * @param total    总记录数
     */
    public ResultBasePage(Object list, Integer pageNum, Integer pageSize, Long total) {
        this.list = list;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
    }
}
